﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

/// <summary>
/// Used as part of the code behind to the analysismenu usercontrol, due to AJAX autocomplete
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
[System.Web.Script.Services.ScriptService]
public class WebService : System.Web.Services.WebService
{
  private AutoCompCompanies AutoCompDal = new AutoCompCompanies();

  public WebService()
  {
    //Uncomment the following line if using designed components 
    //InitializeComponent(); 
  }
  [WebMethod]
  public List<string> AutoComp(string prefixText)
  {
    return AutoCompDal.Load(prefixText);
  }
}

